package world.ztomorrow.push.constant;

public class PushConstant {

    /**
     * 三大榜单
     */
    public static String CAFFEINE_VISIT_RANK = "caffeineVisitRank";
    public static long CAFFEINE_VISIT_RANK_TTL = 6L;
    public static String CAFFEINE_NEWEST_RANK = "caffeineNewestRank";
    public static long CAFFEINE_NEWEST_RANK_TTL = 3L;
    public static String CAFFEINE_UPDATE_RANK = "caffeineUpdateRank";
    public static long CAFFEINE_UPDATE_RANK_TTL = 3L;

    public static String REDIS_VISIT_RANK = "cache:Rank:Visit";
    public static long REDIS_VISIT_RANK_TTL = 12L;
    public static String REDIS_NEWEST_RANK = "cache:Rank:Newest";
    public static long REDIS_NEWEST_RANK_TTL = 13L;
    public static String REDIS_UPDATE_RANK = "cache:Rank:Update";
    public static long REDIS_UPDATE_RANK_TTL = 14L;

    /**
     * 首页推荐书籍常量
     */
    public static String CAFFEINE_HOME_BOOK = "caffeineHomeBook";
    public static long CAFFEINE_HOME_BOOK_TTL = 4L;
    public static String REDIS_HOME_BOOK = "cache:home:book";
    public static long REDIS_HOME_BOOK_TTL = 16L;

    /**
     * 首页友情连接常量
     */
    public static String CAFFEINE_HOME_FRIEND_LINK = "caffeineFriendLink";
    public static long CAFFEINE_FRIEND_LINK_TTL = 5L;
    public static String REDIS_HOME_FRIEND_LINK= "cache:home:link";
    public static long REDIS_FRIEND_LINK_TTL = 30L;

    /**
     * 资讯常量
     */
    public static String CAFFEINE_LATEST_NEWS = "caffeineLatestNews";
    public static String REDIS_LATEST_NEWS = "cache:latest:news";
    public static long REDIS_LATEST_NEWS_TTL = 4L;

    public static String BOOK_VISIT_COUNT = "visit_count";
    public static String BOOK_CREATE_TIME = "create_time";
    public static String BOOK_UPDATE_TIME = "update_time";
}
